package com.cheetah.start.module.system.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.cheetah.start.common.base.result.ResultController;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


/**
 * 奇怪加了前缀，静态资源访问不到 页面控制器
 *
 * @author xjhmwj
 * @date 2021/7/15 16:29
 */
@Api(tags = "页面跳转")
@Slf4j
@Controller
@RequestMapping()
public class SysIndexController extends ResultController {


    @GetMapping("/")
    public String blank() {
        return "/login";
    }

    /**
     * 登录
     *
     * @return {@link String}
     */
    @GetMapping("/login")
    public String login() {
        return "/login";
    }


    /**
     * 首页
     *
     * @return {@link String}
     */
    @GetMapping("/index")
    public String index() {
        return "/index";
    }





}
